/*
 * @Author: your name
 * @Date: 2021-08-23 16:58:40
 * @LastEditTime: 2021-08-24 15:06:24
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ewshop\ewshop\src\network\home.js
 */
import { request } from './request'
// 加载所有数据
export function getHomeAllData() {
    return request({
        url: '/api/index',
        // method: 'get',
        // params: {}
    })
}
// 加载商品数据
export function getHomeGoods(type = "sales", page = 1) {
    return request({
        url: '/api/index?' + type + '=1&page=' + page,
        // method: 'get',
        // params: {}
    })
}